<?php
require_once 'application/library/db/gcBasicDao.php';
require_once 'application/constant/dbConstant.php';

class dao_T_EC_M_GOODS_REALATED_CATGDao extends gcBasicDao {
    protected $_table = "T_EC_M_GOODS_REALATED_CATG";
    public function pbGoodsRealatedInsert($arrParameter,$strGoodsNo) {
        $sql = "insert into T_EC_M_GOODS_REALATED_CATG (GOODS_NO,SECOND_CATG_NO) values(:GoodsNo, :goodsSecondCATG )";
        $parameter = array("GoodsNo" => $strGoodsNo,
                           "goodsSecondCATG" => $arrParameter["goodsSecondCATG"]);
        $intInsertRe = $this->insert($sql, $parameter);
        return $intInsertRe;
    }
    public function pbDeleteCatgRealated($strGoodsNo) {
        $sql = "delete from T_EC_M_GOODS_REALATED_CATG where GOODS_NO = :GoodsNo ";
        $parameter = array("GoodsNo" =>$strGoodsNo);
        $intDeleteRe = $this->delete($sql, $parameter);
        return $intDeleteRe;
    }
}